class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table "users", :force => true do |t|
      t.column :email,                     :string
      t.column :openid_url,                :string
      t.column :crypted_password,          :string, :limit => 40
      t.column :salt,                      :string, :limit => 40
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
      t.column :remember_token,            :string
      t.column :remember_token_expires_at, :datetime
      t.column "activated",                :boolean,                :default => false
      t.column "last_login_at",            :datetime,               :default => '2007-11-19 23:50:12'
      t.column "user_things_count",        :integer,                :default => 0
      t.column "comments_count",           :integer,                :default => 0
      t.column "nickname",                 :string
      t.column "signature",                :text
      t.column "gender",                   :integer,                :default => 0 #means it's a secrete!
      t.column "user_photo",               :string      
    end
  end

  def self.down
    drop_table "users"
  end
end
